/*
package cn.tedu.apps_system.service.impl;

import org.springframework.security.core.userdetails.User;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNotFoundException;
import org.springframework.stereotype.Service;

@Service
public class UserDetailServiceImpl implements UserDetailsService {
    @Override
    public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException {
        return User.withUsername("user") //用户名:用户提交过来的用户名
                .password("123456") //密码:从数据库中查询的密码,{noop}:明文,生产环境不能加
                .authorities("sys:private:view","sys:private:edit") //权限:从数据库中查询的权限
                .build();
    }
}
*/
